Skip to content

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Oct 1, 2024

Motivation:

The names of the request/response types are quite stilted. We can improve them by removing the namespacing and by removing the explicit "Single".

Modifications:

  • ServerRequest.Single -> ServerRequest
  • ServerRequest.Stream -> StreamingServerRequest
  • ServerResponse.Single -> ServerResponse
  • ServerResponse.Stream -> StreamingServerResponse
  • ClientRequest.Single -> ClientRequest
  • ClientRequest.Stream -> StreamingClientRequest
  • ClientResponse.Single -> ClientResponse
  • ClientResponse.Stream -> StreamingClientResponse

Result:

Better naming

Motivation:

The names of the request/response types are quite stilted. We can
improve them by removing the namespacing and by removing the explicit
"Single".

Modifications:

- `ServerRequest.Single` -> `ServerRequest`
- `ServerRequest.Stream` -> `StreamingServerRequest`
- `ServerResponse.Single` -> `ServerResponse`
- `ServerResponse.Stream` -> `StreamingServerResponse`
- `ClientRequest.Single` -> `ClientRequest`
- `ClientRequest.Stream` -> `StreamingClientRequest`
- `ClientResponse.Single` -> `ClientResponse`
- `ClientResponse.Stream` -> `StreamingClientResponse`

Result:

Better naming
@glbrntt glbrntt added the ⚠️ semver/major Breaks existing public API. label Oct 1, 2024
@glbrntt glbrntt requested a review from gjcairo October 1, 2024 09:38
@gjcairo gjcairo changed the title Improve nanming of request/response types Improve naming of request/response types Oct 1, 2024
@glbrntt glbrntt force-pushed the v2/request-response-naming branch from 5b76f60 to 6096bc9 Compare October 1, 2024 09:59
@glbrntt glbrntt enabled auto-merge (squash) October 1, 2024 09:59
@glbrntt glbrntt merged commit 1e92fc8 into grpc:main Oct 1, 2024
5 of 8 checks passed
@glbrntt glbrntt deleted the v2/request-response-naming branch October 1, 2024 11:25
glbrntt added a commit to glbrntt/grpc-swift-protobuf that referenced this pull request Oct 1, 2024
Motivation:

Some type names changed in grpc/grpc-swift#2076
and now our tests fail.

Modifications:

- Update tests

Result:

Tests pass
glbrntt added a commit to glbrntt/grpc-swift that referenced this pull request Oct 1, 2024
Motivation:

Some names changed in grpc#2076
and now our examples don't compile.

Modifications:

- Update examples

Result:

Examples compile
@glbrntt glbrntt mentioned this pull request Oct 1, 2024
glbrntt added a commit to glbrntt/grpc-swift-nio-transport that referenced this pull request Oct 1, 2024
Motivation:

Some names chagned in grpc/grpc-swift#2076 so
our generated code isn't up-to-date.

Modifications:

- Update names
- Regenerate code

Result:

Tests and generated code are up-to-date
glbrntt added a commit to glbrntt/grpc-swift-extras that referenced this pull request Oct 1, 2024
Motivation:

Some names were changed in grpc/grpc-swift#2076
which we need to update here.

Modifications:

- Update names of request/response types
- Regenerate code

Result:

Compiles
glbrntt added a commit to glbrntt/grpc-swift-extras that referenced this pull request Oct 1, 2024
Motivation:

Some names were changed in grpc/grpc-swift#2076
which we need to update here.

Modifications:

- Update names of request/response types
- Regenerate code

Result:

Compiles
glbrntt added a commit to glbrntt/grpc-swift-nio-transport that referenced this pull request Oct 1, 2024
Motivation:

Some names chagned in grpc/grpc-swift#2076 so
our generated code isn't up-to-date.

Modifications:

- Update names
- Regenerate code

Result:

Tests and generated code are up-to-date
glbrntt added a commit to grpc/grpc-swift-protobuf that referenced this pull request Oct 1, 2024
Motivation:

Some type names changed in grpc/grpc-swift#2076
and now our tests fail.

Modifications:

- Update tests

Result:

Tests pass
glbrntt added a commit that referenced this pull request Oct 1, 2024
Motivation:

Some names changed in #2076 and
now our examples don't compile.

Modifications:

- Update examples

Result:

Examples compile
glbrntt added a commit to grpc/grpc-swift-nio-transport that referenced this pull request Oct 1, 2024
Motivation:

Some names chagned in grpc/grpc-swift#2076 so
our generated code isn't up-to-date.

Modifications:

- Update names
- Regenerate code

Result:

Tests and generated code are up-to-date
glbrntt added a commit to grpc/grpc-swift-extras that referenced this pull request Oct 1, 2024
Motivation:

Some names were changed in grpc/grpc-swift#2076
which we need to update here.

Modifications:

- Update names of request/response types
- Regenerate code

Result:

Compiles
@rnro rnro mentioned this pull request Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️ semver/major Breaks existing public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants